home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Bank smakow
/
BankSmakow.air
/
BankSmakow.swf
/
scripts
/
com
/
makingwaves
/
sql
/
StatementExecutor.as
< prev
next >
Wrap
Text File
|
2009-12-16
|
949b
|
38 lines
package com.makingwaves.sql
{
import flash.data.SQLConnection;
import flash.data.SQLResult;
import flash.data.SQLStatement;
import flash.utils.Dictionary;
public class StatementExecutor
{
private var _connection:SQLConnection;
public function StatementExecutor(param1:SQLConnection)
{
super();
_connection = param1;
}
public function execute(param1:String, param2:Dictionary = null) : SQLResult
{
var _loc4_:* = null;
var _loc3_:SQLStatement = new SQLStatement();
_loc3_.sqlConnection = _connection;
_loc3_.text = param1;
if(param2 != null)
{
for(_loc4_ in param2)
{
_loc3_.parameters[_loc4_] = param2[_loc4_];
}
}
_loc3_.execute();
return _loc3_.getResult();
}
}
}